@layout("/common/_form.html",{js:["/assets/modular/rw/indexBannerTwo/indexBannerTwo_add.js", "/assets/common/libs/wangEditor/wangEditor.js"]}){
<style>
    .showImage{ margin-top:15px;}
    .showImage img{ max-height: 300px; max-width: 100%;}
</style>
<form class="layui-form" id="indexBannerTwoForm" lay-filter="indexBannerTwoForm">
    <div class="layui-fluid" style="padding-bottom: 75px;">
        <div class="layui-card">
            <div class="layui-card-header">首页区块二信息</div>
            <div class="layui-card-body">
                <div class="layui-form-item layui-row">
                    <input id="indexBannerTwoId" name="id" value="${indexBannerTwoId}" type="hidden"/>
                    <div class="layui-inline layui-col-md12">
                        <label class="layui-form-label">背景图<span style="color: red;">*</span></label>
                        <div class="layui-input-block">
                            <input type="hidden" id="bgImageId" name="bgImageId" class="layui-input">
                            <button type="button" class="layui-btn layui-btn" id="bgImageBtn"><i class="fa fa-plus"></i> 选择图片</button>
                            <div id="showBgImage" class="showImage"></div>
                        </div>
                    </div>
                    <div class="layui-inline layui-col-md12">
                        <label class="layui-form-label">英文标题</label>
                        <div class="layui-input-block">
                            <input name="enTitle" placeholder="请输入英文标题" type="text" class="layui-input" lay-verify="required" lay-reqtext="英文标题不能为空"/>
                        </div>
                    </div>
                    <div class="layui-inline layui-col-md12">
                        <label class="layui-form-label">中文标题</label>
                        <div class="layui-input-block">
                            <input name="chTitle" placeholder="请输入中文标题" type="text" class="layui-input" lay-verify="required" lay-reqtext="中文标题不能为空"/>
                        </div>
                    </div>
                    <div class="layui-inline layui-col-md12">
                        <label class="layui-form-label">小标题</label>
                        <div class="layui-input-block">
                            <input name="minTitle" placeholder="请输入小标题" type="text" class="layui-input" lay-verify="required" lay-reqtext="小标题不能为空"/>
                        </div>
                    </div>
                    <div class="layui-inline layui-col-md12">
                        <label class="layui-form-label">内容</label>
                        <div class="layui-input-block">
                            <div id="editorContent"></div>
                            <input type="hidden" id="content" name="content">
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div class="form-group-bottom text-center">
        <button class="layui-btn" lay-filter="btnSubmit" lay-submit>&emsp;提交&emsp;</button>
        <button type="reset" class="layui-btn layui-btn-primary" ew-event="closeDialog">&emsp;取消&emsp;</button>
    </div>
</form>
@}
